package com.team10.hotel.service;

import com.team10.hotel.domain.City;
import com.team10.hotel.domain.Country;
import com.team10.hotel.domain.Hotel;
import com.team10.hotel.domain.Province;

import java.util.List;

public interface HotelService {
    List<Hotel> listHotel();
    int updateHotel(Hotel hotel);
    Hotel findHotelByPrimaryKey(Integer id);
    int insertHotel(Hotel hotel);
    int deleteHotelByPrimaryKey(Integer id);
    List<City> listCity();
    int selectLastInsertId();
    List<Hotel> listHotelAndImage(Integer pageNum,Integer pageSize);
    List<Hotel> listElseHotelAndImage(String hotelLocation,Integer id);
    List<Hotel> findAll();
    List<Hotel> selectHotelByExample(String countryName,String provinceName,String cityName,String keyName,Integer pageNum,Integer pageSize);
    Hotel findHotelAndImageByPrimaryKey(Integer id);

    //刘蒴
    Hotel findHotelExtByPrimaryKey(Integer id);
    List<Hotel> listHotelAndImageHotSome(Integer amount);
    List<Hotel> listHotelAndImageNewBook(Integer amount);
    List<Hotel> selectHotelByNameAndLocation(String keyName,String keyLocation,Integer pageNum,Integer pageSize);
}
